package cn.com.lyj6851.modules.system.service.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
*
*/
@Data
public class DeptDto implements Serializable {

    private static final long serialVersionUID = -5038409317495109498L;
    /** ID */
    private Long id;
    /** 名称 */
    private String name;
    /** 上级部门 */
    private Long pid;
    /** 状态 */
    private Boolean enabled;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DeptDto> children;
    /** 创建日期 */
    private Timestamp createTime;
    public String getLabel() {
        return name;
    }
}
